//科目设置列表。
Ext.define("ES.view.catalog.CatalogList",{
    extend:"Ext.grid.Panel",
    alias:"widget.CatalogTabList",
    closable:true,
    title:"科目设置",
    store:"CatalogStore",
    selType:"checkboxmodel",
    multiSelect:true,
    frame:true,
    layout:{
        type:"fit",
        align:"stretch"
    },
    sortableColumns:false,
    viewConfig:{
        forceFit:true,
        columnLines:true,
        stripRows:true
    },
    tbar:{
            xtype:"toolbar",
            height:36,
            items:["科目名称：",{
                    xtype:"textfield",
                    width:168
            }," ",{
                    xtype:"button",
                    action:"btnQuery",
                    iconCls:'search-trigger-icon',
                    text:"检索",
                    tooltip:"检索数据"
            },"->",{
                    xtype:"button",
                    action:"btnAdd",
                    iconCls:"add-icon",
                    text:"新增",
                    tooltip:"新增数据"
            },"-",{
                    xtype:"button",
                    action:"btnDelete",
                    iconCls:"delete-icon",
                    text:"删除",
                    tooltip:"删除数据"
            }]
    },
    bbar:[{
            xtype:"pagingtoolbar",
            store:"CatalogStore",
            displayInfo:true
    }],
    columns:[{
                    header:"序号",
                    width:32,
                    align:"right",
                    xtype:"rownumberer"
                },{
                    text:"科目代码",
                    width:128,
                    align:"left",
                    menuDisabled:true,
                    sortable:false,
                    dataIndex:"catalogCode"
                },{
                    text:"科目名称",
                    width:128,
                    align:"left",
                    menuDisabled:true,
                    sortable:false,
                    dataIndex:"catalogName"
                },{
                        text:"科目全名",
                        width:268,
                        flex:1,
                        align:"left",
                        menuDisabled:true,
                        sortable:false,
                        dataIndex:"fullCatalogName"
                },{
                        text:"科目标识",
                        width:64,
                        align:"center",
                        menuDisabled:true,
                        sortable:false,
                        dataIndex:"catalogType",
                        renderer:function(value){
                            if(value == 1){
                                return "客户端";
                            }
                            return "";
                        }
                },{
                        text:"描述信息",
                        width:64,
                        flex:1,
                        align:"left",
                        menuDisabled:true,
                        sortable:false,
                        dataIndex:"description"
                }],
    initComponent:function(){
        this.callParent(arguments);
    }
})